var express = require('express');
var router = express.Router();
var multiparty = require('multiparty');
var { menu,role } = require('../model/model.js');


// 无限极分类获取
router.get('/getList', async (req, res) => {
    let menuArr = await role.find({_id:'67208291e1e5bf4763908fa0'}).populate('menus')
    
    
  res.send({
    code: 200,
    msg: "获取成功",
    menuArr
  });

})

module.exports = router;
